﻿using System;

/*
 * Write an expression that calculates trapezoid's area by given sides a and b and height h.
 */

class TrapezoidArea
{
    static void Main(string[] args)
    {
        double sideA = 2.3;
        double sideB = 4.2;
        double height = 3.1;
        double trapezoidArea = (sideA + sideB) * height / 2;
        Console.WriteLine("The area of a trapezoid with sides {0} and {1}, and height of {2} is {3}",sideA,sideB,height,trapezoidArea);
    }
}

